package org.apache.jsp;

import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import Singleton.Application;
import Singleton.Local;
import utils.Functions;
import java.util.Calendar;
import java.util.GregorianCalendar;
import java.text.SimpleDateFormat;
import Singleton.Application;
import Singleton.Local;
import java.util.Date;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import Singleton.Application;
import Singleton.Local;

public final class calendar_005feven_jsp extends org.apache.jasper.runtime.HttpJspBase
    implements org.apache.jasper.runtime.JspSourceDependent {

  private static java.util.List _jspx_dependants;

  static {
    _jspx_dependants = new java.util.ArrayList(2);
    _jspx_dependants.add("/header.jsp");
    _jspx_dependants.add("/footer.jsp");
  }

  public Object getDependants() {
    return _jspx_dependants;
  }

  public void _jspService(HttpServletRequest request, HttpServletResponse response)
        throws java.io.IOException, ServletException {

    JspFactory _jspxFactory = null;
    PageContext pageContext = null;
    HttpSession session = null;
    ServletContext application = null;
    ServletConfig config = null;
    JspWriter out = null;
    Object page = this;
    JspWriter _jspx_out = null;
    PageContext _jspx_page_context = null;


    try {
      _jspxFactory = JspFactory.getDefaultFactory();
      response.setContentType("text/html; charset=ISO-8859-1");
      pageContext = _jspxFactory.getPageContext(this, request, response,
      			null, true, 8192, true);
      _jspx_page_context = pageContext;
      application = pageContext.getServletContext();
      config = pageContext.getServletConfig();
      session = pageContext.getSession();
      out = pageContext.getOut();
      _jspx_out = out;

      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
 Singleton.Application.setTitle("Evenement"); 
      out.write('\r');
      out.write('\n');
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
 String title = Singleton.Application.getTitle(); 
      out.write('\r');
      out.write('\n');

	Singleton.Application.init();
	String libPath = request.getContextPath()+"/lib";
	Date dates= new Date();
	DateFormat dateFormate = new SimpleDateFormat("dd/MM/yyyy");
	String date= dateFormate.format(dates);

      out.write("\r\n");
      out.write("<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("<html>\r\n");
      out.write("<head>\r\n");
      out.write("<meta http-equiv=\"Content-Type\" content=\"text/html; charset=iso-8859-1\">\r\n");
      out.write("<title>Calendrier");
 if (title != null && title != "") { out.println(" - "+title); } 
      out.write("</title>\r\n");
      out.write("<link rel=\"stylesheet\" type=\"text/css\" href=\"");
      out.print( libPath );
      out.write("/css/menuStyles.css\" />\r\n");
      out.write("<link rel=\"stylesheet\" href=\"");
      out.print( libPath );
      out.write("/css/cal_blue_all.css\" type=\"text/css\" media=\"all\">\r\n");
      out.write("<link rel=\"shortcut icon\" href=\"");
      out.print( libPath );
      out.write("/images/favicon.ico\" />\r\n");
      out.write("<script type=\"text/javascript\" src=\"");
      out.print( libPath );
      out.write("/js/myJavascript.js\"></script>\r\n");
      out.write("</head>\r\n");
      out.write("<body>\r\n");
      out.write("<div id=\"header\" class=\"globalbuttonbar\">\r\n");
      out.write("    <span class=\"first\">\r\n");
      out.write("        <button type=\"button\" onclick=\"window.location.href='");
      out.print( request.getContextPath() );
      out.write("/form_add.jsp'\">Ajouter un événement</button><span> - </span>\r\n");
      out.write("    </span>\r\n");
      out.write("</div>\r\n");
      out.write("\r\n");
      out.write("<table width=\"100%\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\" id=\"applicationcontainer\">\r\n");
      out.write("<tr>\r\n");
      out.write("        \r\n");
      out.write("    <td id=\"leftNav\" valign=\"top\" width=\"190\">\r\n");
      out.write("    \r\n");
      out.write("                <div class=\"modulecontainer sidebar\">\r\n");
      out.write("            <div class=\"first\">\r\n");
      out.write("\r\n");
      out.write("                <span class=\"first\"></span>\r\n");
      out.write("                <span class=\"last\"></span>\r\n");
      out.write("            </div>\r\n");
      out.write("            <div style=\"text-align:center;\">\r\n");
      out.write("\r\n");
      out.write("              \r\n");
      out.write("                 <div style=\"border-top:1px dotted #ccc;padding-top:5px;margin-top:5px;\">Nous sommes le&nbsp;:<br>");
      out.print( date );
      out.write(" <a href=\"\"></a></div>\r\n");
      out.write("                     \r\n");
      out.write("                 <div class=\"last\">\r\n");
      out.write("                <span class=\"first\"></span>\r\n");
      out.write("                <span class=\"last\"></span>\r\n");
      out.write("            </div>\r\n");
      out.write("        </div>\r\n");
      out.write("\r\n");
      out.write("  \r\n");
      out.write("                <form method=\"post\" action=\"\">\r\n");
      out.write("        \r\n");
      out.write("            <div>\r\n");
      out.write("                <div class=\"hdr\">\r\n");
      out.write("                    <strong>Recherche d'événements</strong>\r\n");
      out.write("                </div>\r\n");
      out.write("                <div class=\"bdy\">\r\n");
      out.write("                <input type=\"text\" name=\"search_words\" size=\"15\"/>\r\n");
      out.write("                <button type=\"submit\" name=\"SubmitSearch\" value=\"Go\">OK</button>\r\n");
      out.write("                </div>\r\n");
      out.write("\r\n");
      out.write("            </div>\r\n");
      out.write("            <div class=\"last\">\r\n");
      out.write("                <span class=\"first\"></span>\r\n");
      out.write("                <span class=\"last\"></span>\r\n");
      out.write("            </div>\r\n");
      out.write("\r\n");
      out.write("        </div>\r\n");
      out.write("       \r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("   \r\n");
      out.write("    </td>\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("    <td valign=\"top\" width=\"100%\">\r\n");
      out.write("\r\n");
      out.write("                        <div id=\"tabbackground\">\r\n");
      out.write("                <div id=\"ymacalnav\">\r\n");
      out.write("                    <span class=\"bge\"><a href=\"calendar_day.jsp\">Jour</a></span>\r\n");
      out.write("                    <span class=\"bge\"><a href=\"calendar_week.jsp\">Semaine</a></span>\r\n");
      out.write("                    <span class=\"bge\"><a href=\"calendar_month.jsp\">Mois</a></span>\r\n");
      out.write("                    <span class=\"bge\"><a href=\"calendar_even.jsp\">Événements (liste)</a></span>\r\n");
      out.write("                </div>\r\n");
      out.write("            </div>\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("      \r\n");
      out.write("\r\n");
      out.write("\r\n");

	SimpleDateFormat dateFormat = new SimpleDateFormat(Local.get("shortDateFormat")); 
	GregorianCalendar[] week = new GregorianCalendar[7];
	
	week[0] = new GregorianCalendar();
	if (!Functions.isNullOrEmpty(request.getParameter("date"))) {
		week[0].setTime(dateFormat.parse(request.getParameter("date")));
	} else {
		week[0].setTime(new java.util.Date());
	}
	week[0] = Functions.getFirstDayOfWeek(week[0]);
	for (int i=1;i<week.length;i++) {
		week[i]=Functions.addDays(week[0],i);
	}

      out.write("   \r\n");
      out.write("\r\n");
      out.write("    \r\n");
      out.write("        <div id=\"eventsdataview\">\r\n");
      out.write("            <div id=\"calhdr\" class=\"noline\">\r\n");
      out.write("        <span>\r\n");
      out.write("\r\n");
      out.write("                Événements prévus \r\n");
      out.write("    </span>\r\n");
      out.write("\r\n");
      out.write("            &nbsp;        </div>\r\n");
      out.write("\r\n");
      out.write("            <form name=\"EventList\" method=\"post\" action=\"\">\r\n");
      out.write("            <input type=hidden name=\".crumb\" value=\"9yuiq1Z6LMk\">            \r\n");
      out.write("            <input type=\"hidden\" name=\"whichSelector\" value=\"0\" />\r\n");
      out.write("            <input type=\"hidden\" name=\"listMode1\" value=\"0\" />\r\n");
      out.write("            <input type=\"hidden\" name=\"listMode2\" value=\"0\" />\r\n");
      out.write("            <input type=\"hidden\" name=\"PSW\" value=\"\" />\r\n");
      out.write("            <input type=\"hidden\" name=\"POS\" value=\"0\" />\r\n");
      out.write("            <input type=\"hidden\" name=\"TYP\" value=\"100\" />\r\n");
      out.write("            <input type=\"hidden\" name=\"MOD\" value=\"0\" />\r\n");
      out.write("                                    <div id=\"contentnavtop\" class=\"contentnav\" style=\"margin-top:0;border-top:0;\">\r\n");
      out.write("    <span id=\"filtercontrol\" class=\"first\">\r\n");
      out.write("        <span>Afficher&nbsp;:</span>\r\n");
      out.write("    <a href=\"javascript:CategorySubmit(1,2)\">Tous</a> |\r\n");
      out.write("    prévu(e)s |\r\n");
      out.write("    <a href=\"javascript:CategorySubmit(1,1)\">Passés</a>\r\n");
      out.write("    \r\n");
      out.write("    </span>\r\n");
      out.write("    <span class=\"last\">\r\n");
      out.write("\r\n");
      out.write("</span>\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("</div>\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("    <div class=\"modulecontainer filled\" style=\"clear:both;margin-top:1em;\">\r\n");
      out.write("        <div class=\"first\">\r\n");
      out.write("            <span class=\"first\"></span>\r\n");
      out.write("            <span class=\"last\"></span>\r\n");
      out.write("        </div>\r\n");
      out.write("        <div style=\"padding:2em 0;text-align:center;font-weight:bold;\">Il n'y a aucun(e)Événements prévu(e)s.</div>\r\n");
      out.write("        <div class=\"last\">\r\n");
      out.write("            <span class=\"first\"></span>\r\n");
      out.write("            <span class=\"last\"></span>\r\n");
      out.write("        </div>\r\n");
      out.write("    </div>\r\n");
      out.write("        </form>\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("<form method=\"post\" action=\"\">\r\n");
      out.write("        <input type=hidden name=\".crumb\" value=\"9yuiq1Z6LMk\">\r\n");
      out.write("\r\n");
      out.write("    <div class=\"simplemodule content\" style=\"margin-top:10px;\">\r\n");
      out.write("        <div class=\"shd\">\r\n");
      out.write("            <div class=\"nw\">&nbsp;</div>\r\n");
      out.write("            <div class=\"ne\">&nbsp;</div>\r\n");
      out.write("        </div>\r\n");
      out.write("        <div class=\"sbd\" style=\"width:auto;text-align:center;\">\r\n");
      out.write("            <div id=\"qaddcontainer\">\r\n");
      out.write("                <div class=\"formwrap\">\r\n");
      out.write("                    <fieldset>\r\n");
      out.write("                        <legend>Ajout rapide</legend>\r\n");
      out.write("                        \r\n");
      out.write("                           \r\n");
      out.write("                            <input type=\"text\" name=\"TITLE\" maxlength=\"80\" size=\"15\" class=\"tf\" />\r\n");
      out.write("                    </fieldset>\r\n");
      out.write("                </div>\r\n");
      out.write("                <div class=\"formwrap\">\r\n");
      out.write("                    <fieldset>\r\n");
      out.write("                        <legend>Date</legend>\r\n");
      out.write("                        \r\n");
      out.write("                        \r\n");
      out.write("                            <select name=\"StartDay\">\r\n");
      out.write("                            \r\n");
      out.write("                                <option value=\"1\">1</option>\r\n");
      out.write("                            \r\n");
      out.write("                                <option value=\"2\">2</option>\r\n");
      out.write("                            \r\n");
      out.write("                                <option value=\"3\">3</option>\r\n");
      out.write("                            \r\n");
      out.write("                                <option value=\"4\">4</option>\r\n");
      out.write("                            \r\n");
      out.write("                                <option value=\"5\">5</option>\r\n");
      out.write("                            \r\n");
      out.write("                                <option value=\"6\">6</option>\r\n");
      out.write("                            \r\n");
      out.write("                                <option value=\"7\">7</option>\r\n");
      out.write("                            \r\n");
      out.write("                                <option value=\"8\">8</option>\r\n");
      out.write("                            \r\n");
      out.write("                                <option value=\"9\">9</option>\r\n");
      out.write("                            \r\n");
      out.write("                                <option value=\"10\">10</option>\r\n");
      out.write("                            \r\n");
      out.write("                                <option value=\"11\">11</option>\r\n");
      out.write("                            \r\n");
      out.write("                                <option value=\"12\">12</option>\r\n");
      out.write("                            \r\n");
      out.write("                                <option value=\"13\">13</option>\r\n");
      out.write("                            \r\n");
      out.write("                                <option value=\"14\">14</option>\r\n");
      out.write("                            \r\n");
      out.write("                                <option value=\"15\">15</option>\r\n");
      out.write("                            \r\n");
      out.write("                                <option value=\"16\">16</option>\r\n");
      out.write("                            \r\n");
      out.write("                                <option value=\"17\">17</option>\r\n");
      out.write("                            \r\n");
      out.write("                                <option value=\"18\">18</option>\r\n");
      out.write("                            \r\n");
      out.write("                                <option value=\"19\">19</option>\r\n");
      out.write("                            \r\n");
      out.write("                                <option value=\"20\">20</option>\r\n");
      out.write("                            \r\n");
      out.write("                                <option value=\"21\">21</option>\r\n");
      out.write("                            \r\n");
      out.write("                                <option value=\"22\">22</option>\r\n");
      out.write("                            \r\n");
      out.write("                                <option value=\"23\">23</option>\r\n");
      out.write("                            \r\n");
      out.write("                                <option value=\"24\" >24</option>\r\n");
      out.write("                            \r\n");
      out.write("                                <option value=\"25\">25</option>\r\n");
      out.write("                            \r\n");
      out.write("                                <option value=\"26\">26</option>\r\n");
      out.write("                            \r\n");
      out.write("                                <option value=\"27\">27</option>\r\n");
      out.write("                            \r\n");
      out.write("                                <option value=\"28\">28</option>\r\n");
      out.write("                            \r\n");
      out.write("                                <option value=\"29\">29</option>\r\n");
      out.write("                            \r\n");
      out.write("                                <option value=\"30\">30</option>\r\n");
      out.write("                            \r\n");
      out.write("                                <option value=\"31\">31</option>\r\n");
      out.write("                            \r\n");
      out.write("                            </select>\r\n");
      out.write("                            <select name=\"StartMon\">\r\n");
      out.write("                            \r\n");
      out.write("                                <option value=\"0\">janvier</option>\r\n");
      out.write("                            \r\n");
      out.write("                                <option value=\"1\">février</option>\r\n");
      out.write("                            \r\n");
      out.write("                                <option value=\"2\">mars</option>\r\n");
      out.write("                            \r\n");
      out.write("                                <option value=\"3\" >avril</option>\r\n");
      out.write("                            \r\n");
      out.write("                                <option value=\"4\">mai</option>\r\n");
      out.write("                            \r\n");
      out.write("                                <option value=\"5\">juin</option>\r\n");
      out.write("                            \r\n");
      out.write("                                <option value=\"6\">juillet</option>\r\n");
      out.write("                            \r\n");
      out.write("                                <option value=\"7\">août</option>\r\n");
      out.write("                            \r\n");
      out.write("                                <option value=\"8\">septembre</option>\r\n");
      out.write("                            \r\n");
      out.write("                                <option value=\"9\">octobre</option>\r\n");
      out.write("                            \r\n");
      out.write("                                <option value=\"10\">novembre</option>\r\n");
      out.write("                            \r\n");
      out.write("                                <option value=\"11\">décembre</option>\r\n");
      out.write("                            \r\n");
      out.write("                            </select>\r\n");
      out.write("                            \r\n");
      out.write("                            <select name=\"StartYear\">\r\n");
      out.write("                            \r\n");
      out.write("                                <option value=\"2007\">2007</option>\r\n");
      out.write("                            \r\n");
      out.write("                                <option value=\"2008\" selected>2008</option>\r\n");
      out.write("                            \r\n");
      out.write("                                <option value=\"2009\">2009</option>\r\n");
      out.write("                            \r\n");
      out.write("                                <option value=\"2010\">2010</option>\r\n");
      out.write("                            \r\n");
      out.write("                                <option value=\"2011\">2011</option>\r\n");
      out.write("                            \r\n");
      out.write("                                <option value=\"2012\">2012</option>\r\n");
      out.write("                            \r\n");
      out.write("                                <option value=\"2013\">2013</option>\r\n");
      out.write("                            \r\n");
      out.write("                                <option value=\"2014\">2014</option>\r\n");
      out.write("                            \r\n");
      out.write("                            </select>\r\n");
      out.write("                            \r\n");
      out.write("                        \r\n");
      out.write("                        \r\n");
      out.write("                    </fieldset>\r\n");
      out.write("                </div>\r\n");
      out.write("                <div class=\"formwrap\">\r\n");
      out.write("                    \r\n");
      out.write("                    <fieldset>\r\n");
      out.write("                        <legend>Heure</legend>\r\n");
      out.write("                        <select name=\"StartHourMerid\">\r\n");
      out.write("                        <option value=\"0\">0 h</option>\r\n");
      out.write("                        <option value=\"1\">1 h</option>\r\n");
      out.write("                        <option value=\"2\">2 h</option>\r\n");
      out.write("                        <option value=\"3\">3 h</option>\r\n");
      out.write("                        <option value=\"4\">4 h</option>\r\n");
      out.write("                        <option value=\"5\">5 h</option>\r\n");
      out.write("                        <option value=\"6\">6 h</option>\r\n");
      out.write("                        <option value=\"7\">7 h</option>\r\n");
      out.write("                        <option value=\"8\">8 h</option>\r\n");
      out.write("                        <option value=\"9\">9 h</option>\r\n");
      out.write("                        <option value=\"10\">10 h</option>\r\n");
      out.write("                        <option value=\"11\">11 h</option>\r\n");
      out.write("                        <option value=\"12\">12 h</option>\r\n");
      out.write("                        <option value=\"13\">13 h</option>\r\n");
      out.write("                        <option value=\"14\">14 h</option>\r\n");
      out.write("                        <option value=\"15\" selected>15 h</option>\r\n");
      out.write("                        <option value=\"16\">16 h</option>\r\n");
      out.write("                        <option value=\"17\">17 h</option>\r\n");
      out.write("                        <option value=\"18\">18 h</option>\r\n");
      out.write("                        <option value=\"19\">19 h</option>\r\n");
      out.write("                        <option value=\"20\">20 h</option>\r\n");
      out.write("                        <option value=\"21\">21 h</option>\r\n");
      out.write("                        <option value=\"22\">22 h</option>\r\n");
      out.write("                        <option value=\"23\">23 h</option>\r\n");
      out.write("                        </select>\r\n");
      out.write("                        <select name=\"StartMin\">\r\n");
      out.write("                        <option value=\"0\">00</option>\r\n");
      out.write("                        <option value=\"15\">15</option>\r\n");
      out.write("                        <option value=\"30\">30</option>\r\n");
      out.write("                        <option value=\"45\">45</option>\r\n");
      out.write("                        </select>\r\n");
      out.write("                        <input type=\"hidden\" name=\"DurHour\" value=\"1\" />\r\n");
      out.write("                        <input type=\"hidden\" name=\"DurMin\" value=\"0\" />\r\n");
      out.write("                        <input type=\"hidden\" name=\"ade\" value=\"1\" />\r\n");
      out.write("                    </fieldset>\r\n");
      out.write("                    \r\n");
      out.write("                </div>\r\n");
      out.write("                \r\n");
      out.write("\r\n");
      out.write("                <div class=\"formwrap\">\r\n");
      out.write("                    <fieldset>\r\n");
      out.write("                        <legend style=\"visibility:hidden;\">OK</legend>\r\n");
      out.write("                    \r\n");
      out.write("                        <input type=\"hidden\" name=\"rem_1\" value=\"0\" />\r\n");
      out.write("                        <input type=\"hidden\" name=\"rem_2\" value=\"0\" />\r\n");
      out.write("                        <input type=\"hidden\" name=\"REM_CHK_EM\" value=\"on\" />\r\n");
      out.write("                    \r\n");
      out.write("                        <input type=\"hidden\" name=\"REM_CHK_AP\" value=\"off\" />\r\n");
      out.write("                        <input type=\"hidden\" name=\"REM_CHK_YP\" value=\"off\" />\r\n");
      out.write("                        <input type=\"hidden\" name=\"REM_DST_EM\" value=\"\" />\r\n");
      out.write("                        <input type=\"hidden\" name=\"REM_DST_AP\" value=\"\" />\r\n");
      out.write("                        <input type=\"hidden\" name=\"evt_conf\" value=\"3\" />\r\n");
      out.write("                        <input type=\"hidden\" name=\"POS\" value=\"\" />\r\n");
      out.write("                        <input type=\"hidden\" name=\"TYP\" value=\"\" />\r\n");
      out.write("                        <input type=\"hidden\" name=\"MOD\" value=\"\" />\r\n");
      out.write("                        <button type=\"submit\" name=\"QuickAdd\" id=\"QuickAdd\" value=\"Add\">Ajouter</button>\r\n");
      out.write("                        <input type=\"hidden\" id=\"fieldAdd\" name=\"SubmitSave\" value=\"\" />\r\n");
      out.write("                    </fieldset>\r\n");
      out.write("                </div>\r\n");
      out.write("                \r\n");
      out.write("            </div>\r\n");
      out.write("        </div>\r\n");
      out.write("        <div class=\"sft\">\r\n");
      out.write("            <div class=\"sw\"></div>\r\n");
      out.write("            <div class=\"se\"></div>\r\n");
      out.write("        </div>\r\n");
      out.write("    </div>\r\n");
      out.write("\r\n");
      out.write("        </form>\r\n");
    } catch (Throwable t) {
      if (!(t instanceof SkipPageException)){
        out = _jspx_out;
        if (out != null && out.getBufferSize() != 0)
          out.clearBuffer();
        if (_jspx_page_context != null) _jspx_page_context.handlePageException(t);
      }
    } finally {
      if (_jspxFactory != null) _jspxFactory.releasePageContext(_jspx_page_context);
    }
  }
}
